package com.ssy.lingxi.member.merchant.config;

import com.ssy.lingxi.member.merchant.service.base.IMemberDataInitService;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.DependsOn;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * 系统启动完成后，执行一些方法的配置类
 * @author 万宁
 * @version 2.0.0
 * @date 2020-11-23
 */
@Configuration
@DependsOn("languageHolder")
public class MemberServiceInitConfig {
    @Resource
    private IMemberDataInitService memberDataInitService;

    @PostConstruct
    public void initMemberService() {
        //初始化系统数据
        memberDataInitService.initMemberServiceData();

        //系统启动时，加载“平台会员”的等级、权益、信用信息到Redis缓存
        //baseMemberLrcCacheService.initMemberLrcCache();
    }
}
